class CompromisosPorReunionController < ApplicationController

  layout 'seguimiento_layout'

  def compromisos_por_reunion
    @id_reunion = params[:id_reunion]
    if(@id_reunion != nil && @id_reunion != "")
      @reunion = Reunion.find(@id_reunion)
      @compromisos = Compromiso.where(["reunion_id= (?)", @id_reunion]).limit(50).all
    else
      @id_reunion = "No"
      @reuniones = Reunion.all
    end
  end
  
end
